package AbstractClass;

public class CargoShip extends Spaceship {
    public CargoShip(int engineNum, int crewCapacity)
    {
        super(engineNum,crewCapacity);
    }

    public void display()
    {
        System.out.println("货船的引擎数量："+getEngineNum()+", 乘员容量："+ getCrewCapacity());
    }
}
